package com.taotao.bean;

import com.taotao.vo.Item;

import java.io.Serializable;
import java.util.Date;

public class TbItem implements Serializable{
	private Long id;
    private String title;
    private String sellPoint;
    private Long price;
    private Integer num;
    private String barcode;
    private String image;
    private Long cId;
    private Byte status;
    private Date created;
    private Date updated;

	public TbItem() {
	}

	public TbItem(Item item) {
		this.title = item.getTitle();
		this.sellPoint = item.getSellPoint();
		this.price = item.getPrice();
		this.num = item.getNum();
		this.barcode = item.getBarcode();
		this.image = item.getImage();
		this.cId = item.getcId();

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSellPoint() {
		return sellPoint;
	}

	public void setSellPoint(String sellPoint) {
		this.sellPoint = sellPoint;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Long getcId() {
		return cId;
	}

	public void setcId(Long cId) {
		this.cId = cId;
	}

	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}


	@Override
	public String toString() {
		return "TbItem{" +
				"id=" + id +
				", title='" + title + '\'' +
				", sellPoint='" + sellPoint + '\'' +
				", price=" + price +
				", num=" + num +
				", barcode='" + barcode + '\'' +
				", image='" + image + '\'' +
				", cId=" + cId +
				", status=" + status +
				", created=" + created +
				", updated=" + updated +
				'}';
	}
}